<template>
    <button ui="strong" @click="handleVerify">校验</button>
</template>
<script>
import {defineComponent} from 'vue';
import {useFormInject} from '../src/hooks';

export default defineComponent({

    setup() {
        const form = useFormInject();
        const handleVerify = () => form.validateForm();
        return {
            handleVerify
        };
    }
});
</script>
